package com.sys.db.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class GetBeanUtil {
	static String []  context={"applicationContext-dao.xml","applicationContext-database.xml",};
	public static Object getDao(String DaoName){
		ApplicationContext ctx = new ClassPathXmlApplicationContext(context);
		Object obj=ctx.getBean(DaoName);
		return obj;
	}
}
